package ch6;

public class Zxf6 {
    public static void main(String[] args) {
                int c = 0;
                int b = 2;
                int a=1;
                for (; b<= 10000; b++) {
                   c = 1;
                    for (int i = 2; i <= b; i++) {
                        if (b % i == 0) {
                            c++;
                        }
                    }
                    if (c <= 2) {
                        System.out.println(b+"第"+a+"个");
                        a++;
                    } //else {
                    // System.out.println("D");
                    // }
                }

            }
        }


//}



